package com.xsy.ftp;

/**
 * FTPClient配置类，封装了FTPClient的相关配置
 * @author xiaoshyang
 */
public class FTPClientConfigure {

    /**
     * ip
     */
    private String host;

    /**
     * 端口
     */
    private int port;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 被动模式
     */
    private boolean passiveMode;

    /**
     * 编码
     */
    private String encoding;

    /**
     * 客户端超时
     */
    private int clientTimeout;

    /**
     * 文件传输方式
     */
    private int transferFileType;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean getPassiveMode() {
        return passiveMode;
    }

    public void setPassiveMode(boolean passiveMode) {
        this.passiveMode = passiveMode;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public int getClientTimeout() {
        return clientTimeout;
    }

    public void setClientTimeout(int clientTimeout) {
        this.clientTimeout = clientTimeout;
    }

    public int getTransferFileType() {
        return transferFileType;
    }

    public void setTransferFileType(int transferFileType) {
        this.transferFileType = transferFileType;
    }

    @Override
    public String toString() {
        return "FTPClientConfigure{" +
                "host='" + host + '\'' +
                ", port=" + port +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", passiveMode=" + passiveMode +
                ", encoding='" + encoding + '\'' +
                ", clientTimeout=" + clientTimeout +
                ", transferFileType=" + transferFileType +
                '}';
    }
}